package com.ben.multiple.util;

import java.util.Collection;

/**
 * Collection 工具类
 *
 * @author BenJin Yin
 * @date 2019/10/24
 */
public interface MyCollectionUtils {

    /**
     * 空集合判断
     *
     * @param coll Collection
     * @return boolean
     */
    static boolean isEmpty(Collection<?> coll) {
        return coll == null || coll.isEmpty();
    }

    static boolean isNotEmpty(Collection<?> coll) {
        return !isEmpty(coll);
    }
}
